﻿using System;
using System.Collections.Generic;
using System.Data;
namespace ZX.HIS.IDAL
{
	/// <summary>
	/// 接口层Hospital
	/// </summary>
	public interface IHospital
    {
        #region 自写方法

        /// <summary>
        /// 人员登陆
        /// </summary>
        /// <returns></returns>
        List<ZX.HIS.Model.UserInfo> loginHospital(string UserName, string UserPwd);
       
       
        /// <summary>
        /// 诊所注册
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int registHospital(ZX.HIS.Model.Hospital model);

        /// <summary>
        /// 添加人员表
        /// </summary>
        /// <returns></returns>
        int addUserInfo(int HospitalId,string UserName, string UserPwd, string UserChineseName);
        
          

        /// <summary>
        /// 修改诊所信息
        /// </summary>
        /// <param name="HospitalName"></param>
        /// <param name="HospitalAddre"></param>
        /// <param name="HospitalId"></param>
        /// <returns></returns>
        int updaHospital(string HospitalName, string HospitalAddre, int HospitalId);

        /// <summary>
        /// 诊所信息
        /// </summary>
        /// <param name="UserId"></param>
        /// <returns></returns>
        List<ZX.HIS.Model.Hospital> model(int UserId);
      
        #endregion
        #region  成员方法
        ///// <summary>
        ///// 得到最大ID
        ///// </summary>
        //int GetMaxId();
        ///// <summary>
        ///// 是否存在该记录
        ///// </summary>
        //bool Exists(string HospitalPhone,int HospitalId);
        ///// <summary>
        ///// 增加一条数据
        ///// </summary>
        //int Add(ZX.HIS.Model.Hospital model);
        ///// <summary>
        ///// 更新一条数据
        ///// </summary>
        //bool Update(ZX.HIS.Model.Hospital model);
        ///// <summary>
        ///// 删除一条数据
        ///// </summary>
        //bool Delete(int HospitalId);
        ///// <summary>
        ///// 删除一条数据
        ///// </summary>
        //bool Delete(string HospitalPhone,int HospitalId);
        //bool DeleteList(string HospitalIdlist );
        ///// <summary>
        ///// 得到一个对象实体
        ///// </summary>
        //ZX.HIS.Model.Hospital GetModel(int HospitalId);
        //ZX.HIS.Model.Hospital DataRowToModel(DataRow row);
        ///// <summary>
        ///// 获得数据列表
        ///// </summary>
        //DataSet GetList(string strWhere);
        ///// <summary>
        ///// 获得前几行数据
        ///// </summary>
        //DataSet GetList(int Top,string strWhere,string filedOrder);
        //int GetRecordCount(string strWhere);
        //DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);
        ///// <summary>
        ///// 根据分页获得数据列表
        ///// </summary>
        ////DataSet GetList(int PageSize,int PageIndex,string strWhere);
		#endregion  成员方法
		#region  MethodEx

		#endregion  MethodEx
	} 
}
